package com.zkjl.protect_business.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * JWT 响应返回
 * </p>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class JwtResponse {
    /**
     * token 字段
     */
    private String token;
    /**
     * token类型
     */
    private String tokenType = "Bearer";

    /**
     * 数据
     */
    private Object info;

    public JwtResponse(String token) {
        this.token = token;
    }

    public JwtResponse(String token,Object data) {
        this.token = token;
        this.info = data;
    }
}
